package com.ndp.fb.walle.config;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by hunk.qin on 2016/3/17.
 */
@Setter
@Getter
@NoArgsConstructor
/**
 * 该类的属性为 public ，可直接赋值
 */
public class RestModel implements Serializable {

    /**
     * 是否成功，失败设置成false
     */
    public Boolean succeed;
    /**
     * 失败的话，返回errormsg
     */
    public String  errorMsg;

    /**
     * errorCode
     */
    private String errorCode;

    /**
     * 数据对象
     */
    public Object  data;

    public String flag;

    public RestModel(Boolean succeed,String  errorMsg, String errorCode, Object data,String flag) {
        this.data=data;
        this.errorMsg=errorMsg;
        this.errorCode = errorCode;
        this.succeed=succeed;
        this.flag=flag;
    }
}
